<template>
  <div class="dashboard-editor-container">

    <el-row :gutter="32">
      
      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <pie-chart />
        </div>
      </el-col>

      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <bar-chart />
        </div>
      </el-col>

      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <raddar-chart />
        </div>
      </el-col>

    </el-row>

    <el-row :gutter="32">
      
      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
           <line-chart :chart-data="lineChartData" />
        </div>
      </el-col>

      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <bar-chart-cust />
        </div>
      </el-col>

      <el-col :xs="24" :sm="24" :lg="8">
        <div class="chart-wrapper">
          <pie-chart-time />
        </div>
      </el-col>

    </el-row>

    
  </div>
</template>

<script>
import PieChart from './dashboard/PieChartAboutCook'
import BarChart from './dashboard/BarChartAboutCategory'
import RaddarChart from './dashboard/RaddarChartAboutTable'
import LineChart from './dashboard/LineChartAboutBill'
import BarChartCust from './dashboard/BarChartCust'
import PieChartTime from './dashboard/PieChartAboutTime'


const lineChartData = {
  newVisitis: {
    expectedData: [45000, 45600, 43500, 52000, 53000, 53000, 57000],
    actualData: [43500, 41200, 44000, 49600, 53500, 57005, 58662]
  },
}

export default {
  name: 'Index',
  components: {

    PieChart,
    BarChart,
    RaddarChart,
    LineChart,
    BarChartCust,
    PieChartTime
  },
  data() {
    return {
      lineChartData: lineChartData.newVisitis
    }
  },
  methods: {
    
  }
}
</script>

<style lang="scss" scoped>
.dashboard-editor-container {
  padding: 32px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

@media (max-width:1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
